package com.business.dynamic.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 动态评论表 实体类
 * @author chenjiehong
 * @date 2019-11-29 15:15:38
 * @since 1.0
 */
@TableName(value = "dynamic_comment")
public class DynamicComment{


    // columns START

	@TableId(value = "id",type=IdType.AUTO)
	private Integer id; 

	/**
	 * 动态id
	 */
	@TableField(value = "dynamic_id")
	private Integer dynamicId; 

	/**
	 * 用户id
	 */
	@TableField(value = "user_id")
	private Integer userId; 

	/**
	 * 回复用户id
	 */
	@TableField(value = "to_user_id")
	private Integer toUserId; 

	/**
	 * 回复内容
	 */
	private String content; 

	/**
	 * 创建时间
	 */
	@TableField(value = "create_time")
	private Date createTime; 

	/**
	 * 可见性 1:作者可见，0：所有人可见
	 */
	private Integer visibility; 
	// columns END


	public Integer getId() {
		return id;
	}

    public void setId(Integer id) {
    	this.id = id;
    }
	public Integer getDynamicId() {
		return dynamicId;
	}

    public void setDynamicId(Integer dynamicId) {
    	this.dynamicId = dynamicId;
    }
	public Integer getUserId() {
		return userId;
	}

    public void setUserId(Integer userId) {
    	this.userId = userId;
    }
	public Integer getToUserId() {
		return toUserId;
	}

    public void setToUserId(Integer toUserId) {
    	this.toUserId = toUserId;
    }
	public String getContent() {
		return content;
	}

    public void setContent(String content) {
    	this.content = content;
    }
	public Date getCreateTime() {
		return createTime;
	}

    public void setCreateTime(Date createTime) {
    	this.createTime = createTime;
    }
	public Integer getVisibility() {
		return visibility;
	}

    public void setVisibility(Integer visibility) {
    	this.visibility = visibility;
    }
	
	@Override
	public String toString() {
		String log = ""; 
		log += "[id:" + getId() + "]";
		log += "[dynamicId:" + getDynamicId() + "]";
		log += "[userId:" + getUserId() + "]";
		log += "[toUserId:" + getToUserId() + "]";
		log += "[content:" + getContent() + "]";
		log += "[createTime:" + getCreateTime() + "]";
		log += "[visibility:" + getVisibility() + "]";
		return log;
	}
}